import axios from '@/libs/api.request'


export default {
    appProjectTypeListPage(data) { //应用项目类型列表
        return axios.request({
            url   : '/app/project-type/page',
            data,
            method: 'post'
        })
    },

    appProjectTypeCreate(data) { //应用项目类型新建
        return axios.request({
            url   : '/app/project-type',
            data,
            method: 'post'
        })
    },

    appProjectTypeDelete(id) { //应用项目类型删除
        return axios.request({
            url   : '/app/project-type/' + id,
            method: 'delete'
        })
    },

    appProjectTypeUpdate(id, data) { //应用项目类型更新
        return axios.request({
            url   : '/app/project-type/' + id,
            data,
            method: 'put'
        })
    },

    appProjectTypeList() { //应用项目类型下拉列表
        return axios.request({
            url   : '/app/project-type/list',
            method: 'get'
        })
    },

    appProjectTypeUpdateDomain(id, data) {
        return axios.request({
            url   : '/app/project-type/' + id +'/domain',
            data,
            method: 'put'
        })
    },

    appProjectTypeUpdateAuditItemList(id, data) {
        return axios.request({
            url   : '/app/project-type/' + id +'/audit-item-list',
            data,
            method: 'put'
        })
    },
}